import React from 'react'
import { TouchableOpacity } from 'react-native'
import { Navigation } from 'react-native-navigation'
import {Icon} from 'native-base'

function createIconButton() {
    return function IconButton({ onPress, name, size, ...props }) {
        console.log('name',name)
        return (
            <TouchableOpacity onPress={onPress} {...props}>
                {/*<IconFont name={name} size={size} />*/}
                <Icon name='home' />
                <Icon ios={name} android="md-menu" style={{fontSize: {size}, color: {color}}}/>
            </TouchableOpacity>
        )
    }
}

Navigation.registerComponent('vIcon', () => createIconButton)